package com.eastfair.imaster.controller;

/**
 * Date:2021/12/7
 * Time:10:16
 *
 * @author zjn
 */

import com.eastfair.core.base.R;
import com.eastfair.imaster.service.ConfigurationInfoService;
import com.eastfair.imaster.vo.ConfigurationInfoVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 配置模块详情相关接口控制类
 * <p>
 * Date:2021/12/7
 * Time:10:37
 *
 * @author zjn
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/configurationInfo")
@Api(value = "配置模块详情相关接口控制类", tags = "配置模块详情相关接口控制类")
public class ConfigurationInfoController {

    @Autowired
    private ConfigurationInfoService configurationInfoService;

    @GetMapping("/getConfigurationInfo")
    @ApiOperation(value = "获取项目配置中心相关详情", notes = "获取项目配置中心相关详情")
    public R<ConfigurationInfoVO> getConfigurationInfo() {
        return configurationInfoService.getConfigurationInfo();
    }

}
